﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="App_Themes/Default/css/style.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/Default/css/repeat.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/Default/css/reset.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<script type="text/javascript" src="App_Themes/Default/js/iepngfix_tilebg.js"></script>
<![endif]-->
    <script src="lib/common/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="App_Themes/Default/Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script type="text/javascript">
       
        var flash;
        var data=<%=data %>;
        var d2;
        var rel=0;
        var dlist={};
        $(document).ready(function(){
            $("#close,#btnOK").click(function(){
                $("#win").hide();
            });
        });
        var main={
            init:function(){
//                var list=data.list;               
//                var d="";
//                var o;
//                for(var i=0;i<list.length;i++){
//                    o=list[i];
//                    //d.push(o.AID+','+o.AName+',1'+"|");
//                    d+=o.AID+','+o.AName+',1'+"|";
//                    //eval('dlist.'+o.AID+'=o;');
//                    
//                }
                $("#idBegin").html(data.begin);
                $("#idLast").html(data.last);
                $("#idNotice").html(data.notice);
                $("#zlist").html(data.dt);
                //$("#idShare").html(data.share);
                flash.FLASH_A(data.alist);

            },
            list:[],
            get:function(index){
                if(main.list.length <=0)
                {
                    main.initList();
                }
                for(var i=0;i<main.list.length;i++){
                    if(index==main.list[i].AID){
                        return main.list[i];
                    }
                }
            },
            initList:function(){
                var l = data.alist.split("|");
                var o={};
                for(var i=0;i<l.length;i++){
                    o.AID=l[i].split(",")[0];
                    o.AName=l[i].split(",")[1];
                    main.list.push(o);
                }
            }
        };


        function JS_A() {       
            //flash=document.getElementById("FlashID");     
            
            if (navigator.appName.indexOf("Microsoft") != -1) {			    
                flash=document.getElementById("FlashID");
		    }
		    else {
		    //非ie			    
                flash=document.getElementById("FlashID_em");
		    }	
         
            main.init();                       
        }

        
        function JS_B() { 
            //抽奖啦
           
            $.ajax({
                    type: "POST",
                    url: "handler/Common.ashx?action=trigger",
                    data: {nick:data.ni},
                    dataType: 'json',
                    success: function (msg) {
                        rel=msg.rel;
                        if (msg.rel >= 0) {
                            //document.getElementById("FlashID").FLASH_B(msg.rel);
                            flash.FLASH_B(msg.rel);
                        }
                        else {
                            
                        }
                    }
                });
        }

        function JS_C(){
            //alert("");
            var o=main.get(rel);
            if(o){
                $("#showMessage").html("恭喜您，您中的奖品是："+o.AName+",请联系店家领取奖品，谢谢：）");
            }
            else{
                $("#showMessage").html("你本次没有中奖");
            }
            $("#win").show();
        }
    </script>
</head>
<body>
    
    <div class="content">
	<div class="con_l fl">
    
        <div class="riqi" ><span id="idBegin"></span>--<span id="idLast"></span>
        </div>
        
        <div class="gonggao"><span>公告：</span>
        	<ul>
            	<li id="idNotice"><span ></span></li>            
            </ul>
        </div>
        
        <div class="fenxiang"><span class="span_l"><a href="#">收藏店铺</a></span><span class="span_r"><div class="bshare-custom">分享活动：<a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到人人网" class="bshare-renren"></a><a title="分享到腾讯微博" class="bshare-qqmb"></a><a title="分享到网易微博" class="bshare-neteasemb"></a><a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a><span class="BSHARE_COUNT bshare-share-count">0</span></div><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=c9aa74f7-9e56-43bc-90ba-c321c3998b0d&amp;pophcol=2&amp;lang=zh"></script><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script></span>
        </div>
        
        <div class="zhongjiang">
        	<div class="zhongjiang_top">中奖名单
            </div>
            <div class="zhongjiang_bot" id="zlist">
                
            	<%--<ul class="fl">
                	<li><span>无雨恋月</span>Ipad3平板电脑一部</li>
                	<li><span>无雨恋月</span>Ipad3平板电脑一部</li>
                	<li><span>无雨恋月</span>Ipad3平板电脑一部</li>
                </ul>
            	<ul class="fr">
                	<li><span>宝贝月</span>苹果笔记本电脑一部</li>
                	<li><span>宝贝月</span>苹果笔记本电脑一部</li>
                	<li><span>宝贝月</span>苹果笔记本电脑一部</li>
                </ul>--%>
                <div class="zhongjiang_bot_jiao">
                    <div class="zhongjiang_bot_l fl">
                    </div>
                    <div class="zhongjiang_bot_r fr">
                    </div>
                </div>
            </div>
        </div>
        
        <div class="jihui">
        	<div class="jihui_l fl">您还有<span>5</span>次机会
            </div>
        	<div class="jihui_c fl"><a href="#"><img src="App_Themes/Default/images/button1.jpg" width="122" height="36" /></a>
            </div>
        	<div class="jihui_r fr"><a href="#"><img src="App_Themes/Default/images/button2.jpg" width="120" height="36" /></a>
            </div>
        </div>
        
    </div>
    
    
	<div class="con_r fr">
    
		<div class="flash">
    	 <%-- <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="425" height="494">
          <param name="movie" value="App_Themes/Default/flash/zp5.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
          <param name="expressinstall" value="App_Themes/Default/Scripts/expressInstall.swf" />
          <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="App_Themes/Default/flash/zp5.swf" width="425" height="494">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="App_Themes/Default/Scripts/expressInstall.swf" />
            <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
            <div>
              <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>--%>



        <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="425" height="494">
          <param name="movie" value="App_Themes/Default/flash/zp7.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
          <param name="expressinstall" value="App_Themes/Default/Scripts/expressInstall.swf" />
          <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
          <!--[if !IE]>-->
           <embed src="App_Themes/Default/flash/zp7.swf" wmode="transparent" width="425" height="494" name="FlashID_em" id="FlashID_em" quality="high"></embed>
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="App_Themes/Default/Scripts/expressInstall.swf" />
            <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
            <div>
              <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
              
            </div>
           
        </object>


    	</div>
        
    </div>
    
    <div class="clear"></div>
    
    <!-- tc_cjjh_kuang -->
    <div class="tc_cjjh_kuang" style="display:none;" id="win">
    	<div class="tc_cjjh">
        	<div class="tc_cjjh_top">
            	<div class="tc_cjjh_top_l"></div>
                <div class="tc_cjjh_top_r"></div>
                <div class="tc_cha"><a href="#" id="close"><img src="App_Themes/Default/images/tc_cha.png" width="19" height="20" /></a></div>
                <div class="tc_cjjh_top_c"><div></div>
                </div>
            </div>
        	<div class="tc_cjjh_nr_l">
                <div class="tc_cjjh_nr_2">
                    <div class="tc_cjjh_nr_3">
                        <div class="tc_cjjh_nr_4">
                        	<div class="tc_cjjh_nr">
                       	  		<div class="tc_button_wenzi">
                                	<p id="showMessage">我告诉你如何获得抽奖机会</p>
                                </div>
                            	<div class="tc_button"><a class="tc_button1" href="#" id="btnOK"></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        	<div class="tc_cjjh_bot">
            	<div class="tc_cjjh_bot_l">
                </div>
                <div class="tc_cjjh_bot_r">
                </div>
                <div class="tc_cjjh_bot_c"><div></div>
                </div>
            </div>
        </div>
    </div>
    <!-- End tc_cjjh_kuang -->
    
    <!-- tc_kuang内容放此处 -->
    <!-- End tc_kuang -->
    
</div>

  

    
</body>
</html>
